<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>单项收费明细表</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>
<body>
 <center>
 <table align="center" width="80%" border="0">
		<tr>
	     <td colspan="16" class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">单项收费明细表(${year }年${month }月)
	     &nbsp;&nbsp;&nbsp;&nbsp; 
	     </td>
	    </tr>
	    <tr><td>
		<table class="tableline" id="Table1" cellspacing="1" cellpadding="0" width="100%" border="0">
		    <tr align="center">
		      <td width="6%" height="40" bgcolor="#ffffff">业主</td>
		      <td width="6%" bgcolor="#ffffff">${chargeItem.name}</td>
		    </tr>
			<c:if test="${!empty pm.datas}">   
				<c:forEach items="${pm.datas }" var="queryMap">
			        <tr align="center">
			        <td  align="center" bgcolor="#ffffff">
					${queryMap.ownerName}
					</td>
					<td  align="center" bgcolor="#ffffff">
					${queryMap.resultCharge}
					</td>
			        </tr>
			      </c:forEach>
			 </c:if>
		    <tr>
			<td bgcolor="#ffffff" colspan="2">
				<center>
					<pg:pager url="individualCharge.do" items="${pm.total }" export="currentPageNumber=pageNumber">
						<pg:first>
							<a href="${pageUrl }&subId=${subId }&year=${year }&month=${month }&chargeItemId=${chargeItemId}">首页</a>
		
						</pg:first>
						<pg:prev>
							<a href="${pageUrl }&subId=${subId }&year=${year }&month=${month }&chargeItemId=${chargeItemId}">上一页</a>
						</pg:prev>
						<pg:pages>
							<c:choose>
								<c:when test="${currentPageNumber eq pageNumber}">
									<font color="red">${pageNumber }</font>
								</c:when>
								<c:otherwise>
									<a href="${pageUrl }&subId=${subId }&year=${year }&month=${month }&chargeItemId=${chargeItemId}">${pageNumber }</a>
								</c:otherwise>
							</c:choose>
						</pg:pages>
						<pg:next>
							<a href="${pageUrl }&subId=${subId}&year=${year }&month=${month }&chargeItemId=${chargeItemId}">下一页</a>
						</pg:next>
						<pg:last>
							<a href="${pageUrl }&subId=${subId }&year=${year }&month=${month }&chargeItemId=${chargeItemId}">尾页</a>
						</pg:last>
					</pg:pager>
				</center>
				</td>
			</tr>
		  </table>
	</td></tr>
	<tr align="right">
		<td  bgcolor="#ffffff" align="right" colspan="2">
			<input
				type="button" value="导出Excel报表" style="color: green;"
				onclick="window.location.href='individualCharge.do?method=doExportExcel'">
		</td>
	</tr>
</table>  
</center>
</body>
</html>